package com.example.lx6_8.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.aa.entity.Child
import com.example.lx6_8.R

class TwoAdapter : BaseQuickAdapter<Child, BaseViewHolder>(R.layout.item_rv2) {
    override fun convert(helper: BaseViewHolder, item: Child) {
        Glide.with(context).load(item.extra).into(helper.getView(R.id.iv_2))
        helper.setText(R.id.tv2,item.name)
    }
}